package mytest.ssw.www.myandroidproject.thread;

import android.graphics.Bitmap;

import mytest.ssw.www.myandroidproject.net.MyPOST;

/**
 * Created by 73409 on 2015/10/26.
 */
public class SimplePostThread implements Runnable {


    stringBack  stringback;
    String url=null;

    public SimplePostThread(String url) {
        this.url = url;
    }

    @Override
    public void run() {
        String resultstring;
        MyPOST simppost = new MyPOST();
        resultstring = simppost.SmPost(url);
        stringback.getbackstr(resultstring);
    }

   public  interface  stringBack
    {
        public void getbackstr(String result);
    }
    public void setStringback(stringBack stringback)
    {
        this.stringback = stringback;
    }

}
